@extends('layouts.admin.application')
@section('content')
    <link rel="stylesheet" href="/css/admin.css">
    <div class="admin-content">
        <div class="admin-content-body">
            <div class="am-cf am-padding am-padding-bottom-0">
                <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">产品分类</strong> / <small>******</small></div>
            </div>

            <hr>

            <div class="am-g">
                <div class="am-u-sm-12 am-u-md-6">
                    <div class="am-btn-toolbar">
                        <div class="am-btn-group am-btn-group-xs">
                            <a class="am-btn am-btn-default" href="{{route('brands.create')}}"><span class="am-icon-plus"></span> 新增</a>
                            <button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
                        </div>
                    </div>
                </div>
                <div class="am-u-sm-12 am-u-md-3">
                    <div class="am-input-group am-input-group-sm">
                        <input type="text" class="am-form-field">
                        <span class="am-input-group-btn">
                            <button class="am-btn am-btn-default" type="button">搜索</button>
                        </span>
                    </div>
                </div>
            </div>

            <div class="am-g">
                <div class="am-u-sm-12">
                    <form class="am-form">
                        <table class="am-table am-table-striped am-table-hover table-main">
                            <thead>
                            <tr>

                                <th class="table-check"><input type="checkbox"></th>
                                <th class="table-id">ID</th>
                                <th class="table-title">产品</th>
                                <th class="table-type">链接地址</th>
                                <th class="table-author am-hide-sm-only">详细信息</th>
                                <th class="table-date am-hide-sm-only">是否显示</th>
                                <th class="table-set">排序</th>
                                <th class="table-set">排序</th>

                            </tr>
                            </thead>
                            <tbody>
                            @foreach($brands  as  $brand)
                            <tr>


                                <td><input type="checkbox"></td>
                                <td>{{$brand->id}}</td>
                                <td><a href="#">{{$brand->name}}</a></td>
                                <td><a href="http://www.hao123.com">112</a></td>
                                <td class="am-hide-sm-only">{{$brand->description}}</td>
                                <td class="am-hide-sm-only">
                                    <input type="radio">是
                                </td>
                                <td>
                                    <div class="am-btn-toolbar">
                                        <div class="am-btn-group am-btn-group-xs">
                                            <button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span><a
                                                        href="">编辑</a> </button>
                                            <button class="am-btn am-btn-default am-btn-xs am-hide-sm-only"><span class="am-icon-copy"></span> 复制</button>
                                            <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> 删除</button>
                                        </div>
                                    </div>
                                </td>


                            </tr>
                            @endforeach


                            </tbody>
                        </table>
                        <div class="am-cf">
                            共 {{ $brands->total() }} 条记录
                            <div class="am-fr">
                                {{ $brands->links() }}
                            </div>
                        </div>
                    </form>
                </div>

            </div>
        </div>

        <footer class="admin-content-footer">
            <hr>
            <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
        </footer>

    </div>
@endsection